﻿using Microsoft.Extensions.DependencyInjection;
using System;
using Volo.Abp.Application;
using Volo.Abp.AutoMapper;
using Volo.Abp.Modularity;

namespace RH.Template
{
    [DependsOn(
       typeof(RHTemplateDomainModule),
       typeof(RHTemplateApplicationContractsModule),
       typeof(AbpDddApplicationModule),
       typeof(AbpAutoMapperModule)
       )]
    public class RHTemplateApplicationModule: AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            context.Services.AddAutoMapperObjectMapper<RHTemplateApplicationModule>();
            Configure<AbpAutoMapperOptions>(options =>
            {
                options.AddMaps<RHTemplateApplicationModule>(validate: true);
            });
        }
    }
}
